import java.util.HashMap;
import java.util.Map;

public class StringUniqueCharCount {

	public static void main(String args[]) {

		StringUniqueCharCount t = new StringUniqueCharCount();
		t.charCount("rrramesh#@##@%^$%");
	}

	public void charCount(String str) {
		Map<Character, Integer> map = new HashMap<Character, Integer>();

		for (int i = 0; i < str.length(); i++) {
			int count = 1;
			if (map.get(str.charAt(i)) != null) {
				count = map.get(str.charAt(i));
				count++;
			}
			map.put(str.charAt(i), count);
		}
		System.out.println("Count: " + map);
	}

}
